#include "CFileScanner.h"

class MyScanNotify : public _i_scan_notify {
public:
    bool on_begin_scan() override {
        std::cout << "Scan started." << std::endl;
        return true;
    }

    bool on_end_scan() override {
        std::cout << "Scan ended." << std::endl;
        return true;
    }

    bool on_file(const char* lpszfile) override {
        std::cout << "File: " << lpszfile << std::endl;
        return true;
    }

    bool on_directory(const char* lpszPath) override {
        std::cout << "Directory: " << lpszPath << std::endl;
        return true;
    }
};

int main() {
    CFileScanner scanner;
    MyScanNotify notify;
    scanner.set_notify(&notify);
    scanner.add_path("/mnt/hgfs/test/src/scanfile/111");
	scanner.add_path("/build_dir/CMakeCache.txt");
	scanner.add_path("/opt/mNetAssist");

    scanner.scan(true);

	 //scanner.start_scan_thread(true);
    return 0;
}
